//package com.quartz.start;
//
//import com.quartz.CronScheduled.CronSchedulerJob;
//import org.quartz.SchedulerException;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
///**
// * @author lzn
// * @date 2/23/21 11:12 AM
// * 第二种是定时执行
// */
//@Configuration
//@EnableScheduling
//@Component
//public class SchedulerListener {
//
//    @Autowired
//    public CronSchedulerJob scheduleJobs;
//
//    @Scheduled(cron="*/6 * * * * ?")
//    public void schedule() throws SchedulerException {
//        scheduleJobs.scheduleJobs();
//        System.out.println(">>>>>>>>>>>>>>>定时任务开始执行<<<<<<<<<<<<<");
//    }
//
//}